import { ref, computed, reactive } from 'vue';
import "jbecool/jbecool.uniapp.min.js";
import VMControl from '@/js/VMControl.js';

const D = new VMControl("OBEvolutionAI.DeptControl", "deptId");
// 添加collegeId属性用于存储当前学院ID
D.collegeId = ref(null);

// 导航到专业管理
D.navigateToMajors = function (dept) {
    uni.navigateTo({
        url: "/pages/admin/major-management?deptId=" + dept.deptId,
    });
};

// 添加设置collegeId的方法
D.setCollegeId = function (collegeId) {
    this.collegeId.value = collegeId;
};

export default D; 